package com.hxqc.basic.serivce;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hxqc.basic.mapper.CommonMapper;

@Service("CommonService")
public class CommonService {

	@Resource
	private CommonMapper commonMapper;

	/**
	 * 获得用户登录日志总数
	 * 
	 * @param map
	 * @return
	 */
	public int countSysLoginLog(Map<String, String> map) {
		return commonMapper.countSysLoginLog(map);
	}

	/**
	 * 查询用户登录日志
	 * 
	 * @param map
	 * @return
	 */
	public List<Map<String, Object>> findSysLoginLog(Map<String, String> map) {
		return commonMapper.findSysLoginLog(map);
	}

	/**
	 * 插入操作日志
	 * 
	 * @param map
	 */
	public void insertOptionLog(Map<String, Object> map) {
		commonMapper.insertOptionLog(map);
	}

	/**
	 * 获得系统操作日志总数
	 * 
	 * @param map
	 * @return
	 */
	public int countSysOptionLog(Map<String, String> map) {
		return commonMapper.countSysOptionLog(map);
	}

	/**
	 * 获得系统操作日志集合
	 * 
	 * @param map
	 * @return
	 */
	public List<Map<String, Object>> findSysOptionLog(Map<String, String> map) {
		return commonMapper.findSysOptionLog(map);
	}

}
